<template>
	<view  class="page-stock">
		<button type="default" @click="test">点击</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		}
		,
		methods:{
			test(){
			    uniCloud.callFunction({
					name:"stockctrl",
					data:{
						action:"stock/xxx"
					}
				}).then(res => {
					console.log(res);
				})
			}
		}
	}
</script>

<style lang="scss">
.page-stock{
	  background-color: #007AFF;
}
</style>
